package cn.ysnk.clz.entity.generatorCode;

import org.apache.commons.lang3.StringUtils;

import cn.ysnk.generateCode.ColumnEnum;

public class EntityColumnEntity {
	/**
	 * 是否是主键
	 */
	private boolean primaryKey = false;
	/**
	 * 字段注释，将会生成表单控件名称
	 */
	private String commont;
	/**
	 * 字段类型
	 */
	private ColumnEnum type;
	/**
	 * 字段名称
	 */
	private String columnName;

	/**
	 * 是否可空
	 */
	private boolean nullAble;

	public boolean isPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(boolean primaryKey) {
		this.primaryKey = primaryKey;
	}

	public String getCommont() {
		return commont;
	}

	public void setCommont(String commont) {
		this.commont = commont;
	}

	public ColumnEnum getType() {
		return type;
	}

	public void setType(ColumnEnum type) {
		this.type = type;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public boolean isNullAble() {
		return nullAble;
	}

	public void setNullAble(boolean nullAble) {
		this.nullAble = nullAble;
	}

	public EntityColumnEntity(boolean primaryKey, String commont, ColumnEnum type, String columnName,
			boolean nullAble) {
		super();
		this.primaryKey = primaryKey;
		this.commont = commont;
		this.type = type;
		this.columnName = columnName;
		this.nullAble = nullAble;
	}

}
